## -*- coding: utf-8 -*-
<%inherit file="base.mak" />

<%def name="content()">

<script type="text/javascript">
function onRegister() {
 if(document.getElementById("pass").value.length == 0) {
    alert("${_('You must enter a password')}");
    return false;  
 }
 else if(document.getElementById("pass").value == document.getElementById("pass1").value) {
    return true;  
 }  
 else {
    alert("${_('The passwords you entered do not match.')}");
    return false;  
 }
}
</script>

<p>${_('Please fill out the information below to register an account.')}</p>

<form action="/register" method="POST">
<table>
<tr><td>${_('E-Mail Address')}:</td><td>${h.form_input_txt('email')}</td></tr>
<tr><td>${_('Username')}:</td><td>${h.form_input_txt('username')}</td></tr>
<tr><td>${_('Password')}:</td><td>${h.form_input_txt('password',fieldtype='password')}</td></tr>
<tr><td>${_('Password(confirm)')}:</td><td>${h.form_input_txt('password1',fieldtype='password')}</td></tr>
</table>
<br/>
<input type="submit" onclick="return onRegister();" value="${_('Register')}"/>
</form>
</%def>